package players;

import java.awt.Color;

import game.HexBoard;
import game.Cell;
 
public class CenterAndRandomPlayer extends RandomPlayer {

  public CenterAndRandomPlayer(Color color) {
    super(color);
  }

  @Override
  public Cell itsYourTurn(HexBoard hexBoard) {
    int size = hexBoard.getSize();
    return (Math.random() < 0.5 ? new Cell(size/2, size/2, this)
                                : selectRandomMove(size));
  }

}
